package wsz.springboot.core;

import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.annotation.HandlesTypes;
import java.util.Set;

/**
 * web容器启动后调用
 * @author wsz
 * @date 2021/11/8 14:46
 **/
@HandlesTypes({MySpringServletContainerInitializer.class})
public class MySpringServletContainerInitializer implements ServletContainerInitializer {

    @Override
    public void onStartup(Set<Class<?>> set, ServletContext servletContext) {
        System.out.println("MySpringServletContainerInitializer - onStartup");
    }

}
